# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=libetebase
pkgver=0.5.0
pkgrel=1
pkgdesc="Etebase C library"
arch=(x86_64)
url="https://github.com/etesync/libetebase"
license=(BSD)
depends=(openssl gcc-libs)
makedepends=(rust)
source=("https://github.com/etesync/libetebase/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('448f677bd24bb4315d0d29ae95f29b7841cb64c0af049952ecb634ab683eea9c')

build() {
  cd $pkgname-$pkgver
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install

  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
